<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>{$pagetitle}</title>

	<script src="/Public/Js/jquery-1.9.0.min.js"></script>
	<script src="/Public/Js/bootstrap-3.0.3-dist/js/bootstrap.js"></script>
	<script src="/Public/Js/bootstrap-switch.min.js"></script>
	<script src="/Public/Js/common.js"></script>
	<script src="/Public/Js/user.js"></script>
	<script src="/Public/Js/pool.js"></script>

	<link rel="stylesheet" type="text/css" href="/Public/Css/bootstrap-3.0.3-dist/css/bootstrap.css" />
	<link rel="stylesheet" type="text/css" href="/Public/Css/bootstrap-3.0.3-dist/css/bootstrap-theme.css" />
	<link rel="stylesheet" type="text/css" href="/Public/Css/bootstrap-switch.min.css" />
	<script type="text/javascript">
	var _BASEURL_ = '{:U(\'Index\')}';
	var _UPDATEURL_ = '{:U(\'Index/doupdate\')}';
	var _DELETEURL_ = '{:U(\'Index/dodelete\')}';
	var _RESUMEURL_ = '{:U(\'Index/doresume\')}';

	var _POOLADDURL_ = '{:U(\'Pool/doadd\')}';
	var _POOLUPDATEURL_ = '{:U(\'Pool/doupdate\')}';
	var _POOLSTATUSURL_ = '{:U(\'Pool/status\')}';

	var _USERADDURL_ = '{:U(\'User/doadd\')}';
	var _USERUPDATEURL_ = '{:U(\'User/doupdate\')}';
	var _USERSTATUSURL_ = '{:U(\'User/status\')}';
	var USERROLE = Array('超级无敌管理员','无敌管理员','超级管理员','管理员','一般管理员','不是管理员')
	</script>
	<style type="text/css">
	header,legend {background-color: #fff;}
	body { padding-top: 70px; }
	th,td {text-align:left; }
	</style>
</head>
<body>
	<header class="navbar navbar-fixed-top" role="banner">
		<div class="container" >
			<nav class="navbar navbar-default" role="navigation">
				<div class="navbar-header">
					<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
						<span class="sr-only">Toggle navigation</span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</button>
					<a class="navbar-brand" href="/">&nbsp;&nbsp;Splio Internal Tools</a>
				</div>
				<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
					<ul class="nav navbar-nav">
						<li class="dropdown {$ispShowActive} {$ispUpdateActive} {$ispInsertActive} {$ispTrashActive}">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown">ISP Registration <b class="caret"></b></a>
							<ul class="dropdown-menu">
								<li class="{$ispShowActive}"><a href="{:U('Index/show')}">List</a></li>
							<elt name="my_info.role" value="2">
								<li class="{$ispInsertActive}"><a href="{:U('Index/insert')}">New</a></li>
								<li class="{$ispUpdateActive}"><a href="{:U('Index/update')}">Edit</a></li>
								<li class="{$ispTrashActive}"><a href="{:U('Index/trash')}">Trash</a></li>
							</elt>
								<li class="divider"></li>
								<li>Filter:</li>
								<li>
									<div class="checkbox">
										<label>
											<input class="filter_checkbox" data-isp="tencent" checked type="checkbox">Tencent
										</label>
									</div>
								</li>
								<li>
									<div class="checkbox">
										<label>
											<input class="filter_checkbox" data-isp="netease" checked type="checkbox">Netease
										</label>
									</div>
								</li>
								<li>
									<div class="checkbox">
										<label>
											<input class="filter_checkbox" data-isp="sina" checked type="checkbox">Sina
										</label>
									</div>
								</li>
							</ul>
						</li>
						<elt name="my_info.role" value="2">
						<li class="dropdown {$poolShowActive} {$poolInsertActive} {$poolUpdateActive}">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown">IP Pool <b class="caret"></b></a>
							<ul class="dropdown-menu">
								<li class="{$poolShowActive}"><a href="{:U('Pool/show')}">Show</a></li>
								<li class="{$poolInsertActive}"><a href="{:U('Pool/insert')}">Insert</a></li>
								<li class="{$poolUpdateActive}"><a href="{:U('Pool/update')}">Update</a></li>
								<li class="divider"></li>
							</ul>
						</li>
						</elt>
						<li class="{$cmCampaignThumbTActive}" ><a href="{:U('Thumb/getcampaignthumb')}" >Campaign Thumb</a></li>
						<elt name="my_info.role" value="0">
							<li class="{$userManagementActive}"><a href="{:U('User/index')}">User Management</a></li>
						</elt>
					</ul>
					<ul class="nav navbar-nav navbar-right">
						<li><a><span class="glyphicon glyphicon-user"></span> {$my_info.nickname}</a></li>
						<li style="f"><a href="{:U("Public/loginOut")}" class="loginOut"><span>&nbsp;</span><span class="glyphicon glyphicon-leaf"></span>Logout&nbsp;&nbsp;</a></li>
					</ul>
				</div>
			</nav>
		</div>
	</header>